/**
 * Created by zhgk on 2016/9/19 0019.
 */
/**
 * Created by zhgk on 2016/9/18 0018.
 */
import {ModuleWithProviders}  from '@angular/core';
import {Routes, RouterModule} from '@angular/router';
import {MainComponent} from "./main.component";
import {sysRoutes} from "./sys/sys.router";
import {homeRoutes} from "./home/home.router";


const mainRoutes: Routes = [
    {
        path: 'main',
        component: MainComponent,
        children: [...sysRoutes,
            ...homeRoutes]
    }
];
export const mainRouting: ModuleWithProviders = RouterModule.forChild(mainRoutes);